package com.lhh.company.website.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lhh.company.website.entity.AboutUs;
import com.lhh.company.website.mapper.AboutUsMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
* @author lx
* @description 针对表【about_us(关于我们 公司简介)】的数据库操作Service实现
* @createDate 2025-07-23 15:50:30
*/
@Service
public class AboutUsService extends ServiceImpl<AboutUsMapper, AboutUs> {

    @Resource
    AboutUsMapper aboutUsMapper;

    @Transactional(rollbackFor = {RuntimeException.class})
     public void saveAboutUs(AboutUs aboutUs) {
        aboutUsMapper.deleleAll();
         this.save(aboutUs);
     }
}




